.class Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;
.super Landroid/widget/BaseExpandableListAdapter;
.source "AppAlbumActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/brixd/niceapp/activity/AppAlbumActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "AlbumAppAdapter"
.end annotation


# instance fields
.field inflater:Landroid/view/LayoutInflater;

.field final synthetic this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;


# direct methods
.method public constructor <init>(Lcom/brixd/niceapp/activity/AppAlbumActivity;)V
    .registers 3
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/AppAlbumActivity;

    .prologue
    .line 222
    iput-object p1, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    invoke-direct {p0}, Landroid/widget/BaseExpandableListAdapter;-><init>()V

    .line 223
    invoke-virtual {p1}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->getLayoutInflater()Landroid/view/LayoutInflater;

    move-result-object v0

    iput-object v0, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->inflater:Landroid/view/LayoutInflater;

    .line 224
    return-void
.end method


# virtual methods
.method public getChild(II)Ljava/lang/Object;
    .registers 4
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I

    .prologue
    .line 243
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    # getter for: Lcom/brixd/niceapp/activity/AppAlbumActivity;->mAlbumHolderModel:Lcom/brixd/niceapp/model/AlbumHolderModel;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->access$300(Lcom/brixd/niceapp/activity/AppAlbumActivity;)Lcom/brixd/niceapp/model/AlbumHolderModel;

    move-result-object v0

    iget-object v0, v0, Lcom/brixd/niceapp/model/AlbumHolderModel;->appModels:Ljava/util/List;

    invoke-interface {v0, p2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    return-object v0
.end method

.method public getChildId(II)J
    .registers 5
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I

    .prologue
    .line 253
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getChildView(IIZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 9
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I
    .param p3, "isLastChild"    # Z
    .param p4, "convertView"    # Landroid/view/View;
    .param p5, "parent"    # Landroid/view/ViewGroup;

    .prologue
    .line 369
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    invoke-virtual {v0}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f030034

    const/4 v2, 0x0

    invoke-static {v0, v1, v2}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public getChildrenCount(I)I
    .registers 3
    .param p1, "groupPosition"    # I

    .prologue
    .line 233
    const/4 v0, 0x0

    return v0
.end method

.method public getGroup(I)Ljava/lang/Object;
    .registers 3
    .param p1, "groupPosition"    # I

    .prologue
    .line 238
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    # getter for: Lcom/brixd/niceapp/activity/AppAlbumActivity;->mAlbumHolderModel:Lcom/brixd/niceapp/model/AlbumHolderModel;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->access$300(Lcom/brixd/niceapp/activity/AppAlbumActivity;)Lcom/brixd/niceapp/model/AlbumHolderModel;

    move-result-object v0

    iget-object v0, v0, Lcom/brixd/niceapp/model/AlbumHolderModel;->albumTitle:Ljava/lang/String;

    return-object v0
.end method

.method public getGroupCount()I
    .registers 2

    .prologue
    .line 228
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    # getter for: Lcom/brixd/niceapp/activity/AppAlbumActivity;->mAlbumHolderModel:Lcom/brixd/niceapp/model/AlbumHolderModel;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->access$300(Lcom/brixd/niceapp/activity/AppAlbumActivity;)Lcom/brixd/niceapp/model/AlbumHolderModel;

    move-result-object v0

    iget-object v0, v0, Lcom/brixd/niceapp/model/AlbumHolderModel;->appModels:Ljava/util/List;

    if-nez v0, :cond_c

    const/4 v0, 0x0

    :goto_b
    return v0

    :cond_c
    iget-object v0, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    # getter for: Lcom/brixd/niceapp/activity/AppAlbumActivity;->mAlbumHolderModel:Lcom/brixd/niceapp/model/AlbumHolderModel;
    invoke-static {v0}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->access$300(Lcom/brixd/niceapp/activity/AppAlbumActivity;)Lcom/brixd/niceapp/model/AlbumHolderModel;

    move-result-object v0

    iget-object v0, v0, Lcom/brixd/niceapp/model/AlbumHolderModel;->appModels:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    goto :goto_b
.end method

.method public getGroupId(I)J
    .registers 4
    .param p1, "groupPosition"    # I

    .prologue
    .line 248
    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getGroupView(IZLandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .registers 17
    .param p1, "groupPosition"    # I
    .param p2, "isExpanded"    # Z
    .param p3, "convertView"    # Landroid/view/View;
    .param p4, "parent"    # Landroid/view/ViewGroup;

    .prologue
    .line 263
    iget-object v9, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    invoke-virtual {v9}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->getContext()Landroid/content/Context;

    move-result-object v9

    const v10, 0x7f030006

    const/4 v11, 0x0

    invoke-static {v9, v10, v11}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v8

    .line 265
    .local v8, "view":Landroid/view/View;
    iget-object v9, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    # getter for: Lcom/brixd/niceapp/activity/AppAlbumActivity;->mAlbumHolderModel:Lcom/brixd/niceapp/model/AlbumHolderModel;
    invoke-static {v9}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->access$300(Lcom/brixd/niceapp/activity/AppAlbumActivity;)Lcom/brixd/niceapp/model/AlbumHolderModel;

    move-result-object v9

    iget-object v9, v9, Lcom/brixd/niceapp/model/AlbumHolderModel;->appModels:Ljava/util/List;

    invoke-interface {v9, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/brixd/niceapp/model/AppModel;

    .line 267
    .local v1, "appModel":Lcom/brixd/niceapp/model/AppModel;
    const v9, 0x7f0a0039

    invoke-virtual {v8, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    .line 268
    .local v5, "iconImageView":Landroid/widget/ImageView;
    const v9, 0x7f0a003a

    invoke-virtual {v8, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 269
    .local v2, "appNameText":Landroid/widget/TextView;
    const v9, 0x7f0a003b

    invoke-virtual {v8, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    .line 270
    .local v0, "appDigestText":Landroid/widget/TextView;
    const v9, 0x7f0a0041

    invoke-virtual {v8, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 271
    .local v3, "bravosText":Landroid/widget/TextView;
    const v9, 0x7f0a0042

    invoke-virtual {v8, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/TextView;

    .line 272
    .local v6, "sharedText":Landroid/widget/TextView;
    const v9, 0x7f0a0043

    invoke-virtual {v8, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/TextView;

    .line 273
    .local v7, "showDetailText":Landroid/widget/TextView;
    const v9, 0x7f0a0044

    invoke-virtual {v8, v9}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/TextView;

    .line 275
    .local v4, "downloadText":Landroid/widget/TextView;
    invoke-virtual {v1}, Lcom/brixd/niceapp/model/AppModel;->getTitle()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v2, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 276
    invoke-virtual {v1}, Lcom/brixd/niceapp/model/AppModel;->getDigest()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v0, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 278
    invoke-virtual {v1}, Lcom/brixd/niceapp/model/AppModel;->getUpNum()I

    move-result v9

    if-lez v9, :cond_ec

    .line 279
    const/4 v9, 0x0

    invoke-virtual {v3, v9}, Landroid/widget/TextView;->setVisibility(I)V

    .line 280
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    const-string v10, ""

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/AppModel;->getUpNum()I

    move-result v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v3, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 285
    :goto_8d
    invoke-virtual {v1}, Lcom/brixd/niceapp/model/AppModel;->getShowTimes()I

    move-result v9

    if-lez v9, :cond_f2

    .line 286
    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/AppModel;->getShowTimes()I

    move-result v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v9

    iget-object v10, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    const v11, 0x7f0c0135

    invoke-virtual {v10, v11}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->getString(I)Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v6, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 291
    :goto_b4
    invoke-virtual {v1}, Lcom/brixd/niceapp/model/AppModel;->getId()I

    move-result v9

    if-lez v9, :cond_ff

    .line 292
    const v9, 0x7f0c00fd

    invoke-virtual {v7, v9}, Landroid/widget/TextView;->setText(I)V

    .line 297
    :goto_c0
    new-instance v9, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;

    invoke-direct {v9, p0, v1}, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$1;-><init>(Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;Lcom/brixd/niceapp/model/AppModel;)V

    invoke-virtual {v7, v9}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 316
    new-instance v9, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2;

    invoke-direct {v9, p0, v1}, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$2;-><init>(Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;Lcom/brixd/niceapp/model/AppModel;)V

    invoke-virtual {v4, v9}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 348
    iget-object v9, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    # getter for: Lcom/brixd/niceapp/activity/AppAlbumActivity;->mImageLoader:Lcom/nostra13/universalimageloader/core/ImageLoader;
    invoke-static {v9}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->access$700(Lcom/brixd/niceapp/activity/AppAlbumActivity;)Lcom/nostra13/universalimageloader/core/ImageLoader;

    move-result-object v9

    invoke-virtual {v1}, Lcom/brixd/niceapp/model/AppModel;->getIconUrl()Ljava/lang/String;

    move-result-object v10

    iget-object v11, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    # getter for: Lcom/brixd/niceapp/activity/AppAlbumActivity;->mOptions:Lcom/nostra13/universalimageloader/core/DisplayImageOptions;
    invoke-static {v11}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->access$600(Lcom/brixd/niceapp/activity/AppAlbumActivity;)Lcom/nostra13/universalimageloader/core/DisplayImageOptions;

    move-result-object v11

    invoke-virtual {v9, v10, v5, v11}, Lcom/nostra13/universalimageloader/core/ImageLoader;->displayImage(Ljava/lang/String;Landroid/widget/ImageView;Lcom/nostra13/universalimageloader/core/DisplayImageOptions;)V

    .line 350
    new-instance v9, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$3;

    invoke-direct {v9, p0, v1}, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter$3;-><init>(Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;Lcom/brixd/niceapp/model/AppModel;)V

    invoke-virtual {v8, v9}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 364
    return-object v8

    .line 282
    :cond_ec
    const/16 v9, 0x8

    invoke-virtual {v3, v9}, Landroid/widget/TextView;->setVisibility(I)V

    goto :goto_8d

    .line 288
    :cond_f2
    iget-object v9, p0, Lcom/brixd/niceapp/activity/AppAlbumActivity$AlbumAppAdapter;->this$0:Lcom/brixd/niceapp/activity/AppAlbumActivity;

    const v10, 0x7f0c00b6

    invoke-virtual {v9, v10}, Lcom/brixd/niceapp/activity/AppAlbumActivity;->getString(I)Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v6, v9}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_b4

    .line 294
    :cond_ff
    const v9, 0x7f0c00fe

    invoke-virtual {v7, v9}, Landroid/widget/TextView;->setText(I)V

    goto :goto_c0
.end method

.method public hasStableIds()Z
    .registers 2

    .prologue
    .line 258
    const/4 v0, 0x0

    return v0
.end method

.method public isChildSelectable(II)Z
    .registers 4
    .param p1, "groupPosition"    # I
    .param p2, "childPosition"    # I

    .prologue
    .line 374
    const/4 v0, 0x0

    return v0
.end method
